package com.netease.nieweb.emarket.ums;

import com.netease.nieweb.emarket.api.UmsService;
import com.netease.nieweb.emarket.entity.Userinfo;
import com.netease.nieweb.emarket.service.UserinfoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 　* @Description: TODO
 * 　* @author qiyu
 * 　* @date 2021/4/30 17:25
 *
 */
@DubboService
@Service
public class UmsServiceImpl implements UmsService{

    @Autowired
    private UserinfoService userinfoService;

    @Override
    public Userinfo getUser() {
        return userinfoService.list().get(0);
    }
}
